home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / perl5 / subs.z / subs
Text File  |  1998-10-30  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. ssssuuuubbbbssss((((3333))))                                                                ssssuuuubbbbssss((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      subs - Perl pragma to predeclare sub names
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.          use subs qw(frob);
  13.          frob 3..10;
  14.  
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      This will predeclare all the subroutine whose names are in the list,
  18.      allowing you to use them without parentheses even before they're
  19.      declared.
  20.  
  21.      Unlike pragmas that affect the $^H hints variable, the use vars and use
  22.      subs declarations are not BLOCK-scoped.  They are thus effective for the
  23.      entire file in which they appear.  You may not rescind such declarations
  24.      with no vars or no subs.
  25.  
  26.      See the section on _P_r_a_g_m_a_t_i_c _M_o_d_u_l_e_s in the _p_e_r_l_m_o_d manpage and the
  27.      section on _s_t_r_i_c_t _s_u_b_s in the _s_t_r_i_c_t manpage.
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.